package net.runman.model;

import java.io.Serializable;
import java.util.Date;

public class TPosts implements Serializable {
    private Long id;

    private String postTitle;

    private String postTitleEn;

    private String postStatus;

    private Long postAuthor;

    private Date postDate;

    private Date postModified;

    private String postType;

    private String postMimeType;

    private Integer menuOrder;

    private String postContent;

    private String postExcerpt;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPostTitle() {
        return postTitle;
    }

    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle == null ? null : postTitle.trim();
    }

    public String getPostTitleEn() {
        return postTitleEn;
    }

    public void setPostTitleEn(String postTitleEn) {
        this.postTitleEn = postTitleEn == null ? null : postTitleEn.trim();
    }

    public String getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(String postStatus) {
        this.postStatus = postStatus == null ? null : postStatus.trim();
    }

    public Long getPostAuthor() {
        return postAuthor;
    }

    public void setPostAuthor(Long postAuthor) {
        this.postAuthor = postAuthor;
    }

    public Date getPostDate() {
        return postDate;
    }

    public void setPostDate(Date postDate) {
        this.postDate = postDate;
    }

    public Date getPostModified() {
        return postModified;
    }

    public void setPostModified(Date postModified) {
        this.postModified = postModified;
    }

    public String getPostType() {
        return postType;
    }

    public void setPostType(String postType) {
        this.postType = postType == null ? null : postType.trim();
    }

    public String getPostMimeType() {
        return postMimeType;
    }

    public void setPostMimeType(String postMimeType) {
        this.postMimeType = postMimeType == null ? null : postMimeType.trim();
    }

    public Integer getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent == null ? null : postContent.trim();
    }

    public String getPostExcerpt() {
        return postExcerpt;
    }

    public void setPostExcerpt(String postExcerpt) {
        this.postExcerpt = postExcerpt == null ? null : postExcerpt.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", postTitle=").append(postTitle);
        sb.append(", postTitleEn=").append(postTitleEn);
        sb.append(", postStatus=").append(postStatus);
        sb.append(", postAuthor=").append(postAuthor);
        sb.append(", postDate=").append(postDate);
        sb.append(", postModified=").append(postModified);
        sb.append(", postType=").append(postType);
        sb.append(", postMimeType=").append(postMimeType);
        sb.append(", menuOrder=").append(menuOrder);
        sb.append(", postContent=").append(postContent);
        sb.append(", postExcerpt=").append(postExcerpt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}